// import JSEncrypt from 'jsencrypt'
//qiyu 2023-3-8 jsencrypt 这个库在打包后，会带上YUI 2.9.0版本的一些代码，被漏洞扫描报警
const PUBKEY: string =
	'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCG0acjY7sviFKwM0PERsv6w1Vr/YsmdsIlBFWIp3ZQ47cB1OT5srPppdsvRGZB9JKnmkVBFodK+H2N6B23y3Ib0+CXfhFYFkPy9OP1I1fCX0vt/RTD7gtCIRur+2phCAdqumLzRRaWfNFJOjX8YuOIXiGUl9b/sxdom5+4vCX2pQIDAQAB'

export function encrypt(password: any) {
	let encryptStr: any = new window.JSEncrypt()
	encryptStr.setPublicKey(PUBKEY)
	let result = encryptStr.encrypt(password.toString())
	return result
}
